package cn.cttic.order.api.domain.bo;

import cn.cttic.order.api.domain.BaseReconciliationDetail;
import cn.cttic.common.mybatis.core.domain.BaseEntity;
import cn.cttic.common.core.validate.AddGroup;
import cn.cttic.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 账单详情业务对象 base_reconciliation_detail
 *
 * @author Times.Studio
 * @date 2025-01-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BaseReconciliationDetail.class, reverseConvertGenerate = false)
public class BaseReconciliationDetailBo extends BaseEntity {

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 服务单号
     */
    @NotBlank(message = "服务单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reconciliationId;

    /**
     * 车主姓名
     */
    @NotBlank(message = "车主姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String carOwnerName;

    /**
     * 车牌号
     */
    @NotBlank(message = "车牌号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String carNo;

    /**
     * 终端名称及型号
     */
    @NotBlank(message = "终端名称及型号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String terminalNameModel;

    /**
     * 终端IMEI
     */
    @NotBlank(message = "终端IMEI不能为空", groups = { AddGroup.class, EditGroup.class })
    private String terminalImei;

    /**
     * 终端ICCID
     */
    @NotBlank(message = "终端ICCID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String terminalIccid;

    /**
     * 安装时间
     */
    @NotNull(message = "安装时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date installTime;

    /**
     * 激活时间
     */
    @NotNull(message = "激活时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date activeTime;

    /**
     * 最后一次上线时间
     */
    @NotNull(message = "最后一次上线时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date lastOnlineTime;

    /**
     * 离线天数
     */
    @NotNull(message = "离线天数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer offlineDays;

    /**
     * 车辆类型
     */
    @NotBlank(message = "车辆类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String vehicleType;

    /**
     * 验收状态
     */
    @NotNull(message = "验收状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer verifyStatus;

    /**
     * 复核状态
     */
    @NotNull(message = "复核状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer reviewStatus;

    /**
     * 复核意见
     */
    @NotBlank(message = "复核意见不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reviewReason;

    /**
     * 安装订单号
     */
    @NotBlank(message = "安装订单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String installOrderId;

    /**
     * 销售订单号
     */
    @NotBlank(message = "销售订单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String saleOrderId;


}
